package by.semerikov.tests;

import static org.junit.Assert.*;
 
import org.junit.Test;
 
import by.semerikov.dao.Proposal; 
import by.semerikov.dao.factory.mysqlJdbc.ProposalDAO;

public class ProposalDAOTest {

	@Test
	public void testCreate() {
		try{
		//	PersonDAO pd = new PersonDAO();
		//	Person testPerson = new Person(2, "Lasa", "Sada", "Admin", null, null);
			//pd.create(testPerson);
			ProposalDAO pda = new ProposalDAO();
			Proposal pr = new Proposal(null, "test", null, null, null, null,null, null);
			pda.create (pr);
			pda.delete(pr);
			//Proposal test = pd.read(pr).get(0);
			
			assertTrue(true);
		}
		catch(Exception e)
		{
			
			e.printStackTrace();
			assertFalse(false);
		}
	}

}
